package top.lshaci.learning.shardingjdbc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * User
 * <pre>
 *     1、使用 {@link TableName} 指定表
 * </pre>
 *
 * @author liangxu
 */
@Data
@Accessors(chain = true)
@TableName("t_user")
@EqualsAndHashCode(callSuper = false)
public class User extends Model<User> {
    /**
     * 用户ID
     */
    private Long id;
    /**
     * 用户名
     */
    private String username;
    /**
     * 用户状态
     */
    private Integer status;
}